{template header}
<script src="http://res.websdk.rongcloud.cn/RongIMClient-0.9.9.min.js"></script>
<script src="http://res.websdk.rongcloud.cn/RongIMClient.voice-0.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
	
});

</script>
<div class="bs-docs-example" style="clear:both;">

    <form class="form-horizontal" method="post">
        
        <!-- <div class="control-group">
            <label class="control-label" for="inputShortDesc">发送方id:</label>
            <div class="controls">
                <input name="fromname" type="text" placeholder="发送方id" value="{$source_id}" style="width:400px;">    
            </div>
        </div> -->
        <div class="control-group dib">
            <label class="control-label" for="inputShortDesc">接收群id:</label>
            <div class="controls">
                <input name="toname" type="text" placeholder="接收方id" value="{$target_id}" style="width:400px;">    
            </div>
        </div>
        <div class="control-group dib">
            <div class="controls">
                <input type="hidden" value="search" name="search">
                <button type="submit" class="btn">查询</button>
            </div>
        </div>
    </form>


    <table class="table table-striped">
        <thead>
            <tr>
                <th width="60">ID</th>
                <th width="100">接收群</th>
                <th width="100">操作</th>
                <!-- <th width="100">消息类型</th>
                <th width="100">消息内容</th>
                <th width="100">消息时间</th> -->
            </tr>
        </thead>
        <tbody>
            {if !$data}  
                <tr>
                    <td>暂无记录</td>
                    <td></td>     
                    <td></td>              
                </tr>
            {else}
            {loop $data $k $item}
            <tr>
                <td>{$item['id']}</td>
                <td><img width="30" height="30" src="{$item['toUserHeader']}">&nbsp;&nbsp;&nbsp;{$item['toUserName']}({$item['toUserId']})</td>	

                <td><a href="?c=admin&a=MessageGroupContent&toUserId={$item['toUserId']}">查看</a></td>
                <!-- <td>{$item['typeName']}</td>
                <td>{if $item['objectName'] == 'RC:ImgMsg'}<img width="30" height="30"  src="{$item['content']}"><a href="{$item['content']}" target="_blank">查看</a>{else}{$item['content']}{/if}</td>
                <td>{eval echo date('Y-m-d H:i:s', $item['timestamp'])}</td> -->
            </tr>
            {/loop}
            {/if}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
